DrawingSurface description ...


Properties


DrawingColor

int DrawingColor

Gets/sets the current drawing colour on this surface.


DrawingColour

Color DrawingColour

Gets/sets the current drawing colour on this surface.


Height

int Height

Gets the height of the surface.


UseHighResCoordinates

Gets/sets whether you want to use high-resolution co-ordinates with this surface.


Width

int Width

Gets the width of the surface.


Methods


Clear

void Clear(int colour)  
void Clear(Color colour)

Clears the surface to the specified Xna colour.


CreateCopy

Makes a backup copy of the current surface, in order that it can be restored later.


DrawCircle

Draws a filled circle of radius RADIUS with its centre at(X, Y) in the current drawing colour.


DrawImage

void DrawImage(int x, int y, int slot, int transparency, int width, int height)

Draws image SLOT from the sprite manager onto the surface at location(X, Y).


DrawLine

void DrawLine(int from_x, int from_y, int to_x, int to_y, int thickness)

Draws a line from(FROM_X, FROM_Y) to(TO_X, TO_Y) in the surface's current drawing colour.


DrawMessageWrapped

Draws the room message MESSAGE_NUMBER onto the surface at(x, y), using the specified FONT.


DrawPixel

void DrawPixel(int x, int y)

Draws a single pixel onto the surface at(X, Y) in the current colour.


DrawRectangle

void DrawRectangle(int x1, int y1, int x2, int y2)

Draws a filled rectangle in the current colour with its top-left corner at(x1, y1) and its bottom right corner at(x2, y2)


DrawString

void DrawString(int x, int y, int font, string text)

Draws the text onto the surface at(x, y), using the supplied font number.


DrawStringWrapped

void DrawStringWrapped(int x, int y, int width, int font, Alignment alignment, string text)

Draws the text onto the surface at(x, y), using the specified FONT.


DrawSurface

Draws the specified surface on top of this surface, optionally using transparency percent transparency.


DrawTriangle

void DrawTriangle(int x1, int y1, int x2, int y2, int x3, int y3)

Draws a filled triangle in the current colour with corners at the points(x1, y1), (x2,y2) and(x3, y3).


GetPixel

int GetPixel(int x, int y)

Returns the AGS Colour Number of the pixel at(X, Y) on the surface.


Release

void Release()

Tells engine that you have finished drawing onto this surface.